package com.njitt.bysj.srevice;

import com.njitt.bysj.base.BaseService;
import com.njitt.bysj.bean.EmpRoleBean;
import com.njitt.bysj.mapper.EmpRoleBeanMapper;
import com.njitt.bysj.utils.AssertUtil;
import com.njitt.bysj.utils.PhoneUtil;
import org.springframework.stereotype.Service;
import org.springframework.web.util.pattern.PathPattern;

import javax.annotation.Resource;

/**
 * @description:
 * @author: wyj
 * @time: 2022/3/25 16:18
 */
@Service
public class EmpRoleService extends BaseService<EmpRoleBean, Integer> {

    @Resource
    private EmpRoleBeanMapper empRoleBeanMapper;

    public EmpRoleBean queryRoleByEmpId(Integer empId) {
        AssertUtil.isTrue(empId == null, "这是一个异常");
        EmpRoleBean empRoleBean = empRoleBeanMapper.queryRoleByEmpId(empId);
        return empRoleBean;
    }
}
